/**
 * Border radius may not be supported by all browsers.
 * see http://border-radius.com/
 */

html {
    overflow-y: scroll;
}
body {
    margin: 0px auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: #333333;
    padding: 5px 10px;
    text-align: center;
}
div.page {
    width: 680px;
    margin: 0 auto 15px auto;
    text-align: left;
}
input {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}
textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    border: solid 1px #999;
}
a {
    color: #0645AD;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a.charity {
    color: green;
}
a.sublink {
    color: #578CCA;
}
span.subtext {
    color: #777777;
}
.positive {
    color: green;
    font-weight: bold;
}
.negative {
    color: red;
    font-weight: bold;
}
.error {
    color: #ff0000;
    margin-top: 3px;
    font-size: 13px;
}

/* logo with links/tabs to the main sections of the application */
.head {
    border-bottom: solid 1px #ccdcef;
    height: 44px;
    width: 680px;
    margin-top: 15px;
}
.head img {
    float: left;
    border: none;
}
.head .tabs {
    float: right;
    font-weight: bold;
}
.head .tabs a {
    border: 1px solid #fff;
    display: block;
    float: left;
    height: 31px;
    line-height: 31px;
    margin: 11px 10px 0px 0px;
    padding: 0px 11px;
    text-decoration: none;
}
.head .tabs a:hover {
    background: #fff;
    border: 1px solid #eaf1f8;
    border-bottom-color: #fff;
}
.head .tabs a.you-are-here {
    height: 32px;
    line-height: 32px;
    border: 1px solid #ccdcef;
    border-bottom-color: #fff;
    background: #fff;
}

/* investment article */
.investment-article {
    width: 680px;
    line-height: 130%;
}
.investment-article h1 {
    margin: 26px 0;
    font-size: 23px;
    line-height: 130%;
}
.investment-article img {
    margin-bottom: 30px;
}
.investment-article p {
    padding-bottom: 30px;
    margin: 0;
}
.investment-article .foot {
    height: 45px;
    margin-bottom: 30px;
    position: relative;
}
/* contains rating and buttons */
.investment-article .foot .action-container {
    position: absolute;
    bottom: 0px;
}
.investment-article .foot .action-container .positive,
.investment-article .foot .action-container .negative {
    margin-bottom: 3px;
}
.investment-article .foot .author {
    position: absolute;
    bottom: 0px;
    right: 0px;
}
.investment-article .border {
    border-top: solid 1px #ccdcef;
    height: 3px;
    background-color: #dfe9f5;
}

/* form */
.form {
    border-left: solid 1px #ccdcef;
    border-right: solid 1px #ccdcef;
    border-bottom: solid 1px #ccdcef;
    /* -2px to compensate for the border consuming width */
    width: 638px;
    padding: 20px;
    overflow: auto;
}
.form h2 {
    font-size: 22px;
    margin: 5px 0px 35px 0px;
    color: #666;
}
.form .field {
    clear: both;
    margin: 0 0 25px 0;
    overflow: auto;
}
.form .field input.text-regular {
    width: 300px;
}
.form .field textarea {
    width: 450px;
    height: 100px;
}
.form .field .left {
    padding-top: 5px;
    float: left;
    width: 140px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
}
.form .field .right {
    float: left;
    width: 450px;
}
.form .field .right .tip {
    font-size: 13px;
    margin-top: 3px;
    color: #777777;
}
.form .field .right .tip a {
    color: #777777;
    text-decoration: underline;
}
.form .buttons {
    float: right;
}

/* comment submission form */
.comment-form {
    padding: 20px 1px;
}
.comment-form textarea {
    width: 85%;
    height: 70px;
}
.comment-form input {
    margin-top: 10px;
    display: block;
}

/* list of comments associated with an investment */
.comment-item {
    width: 680px;
    border-top: solid 1px #cfdef0;
    padding: 14px 0px;
    overflow: auto;
}
.comment-item .content {
    padding-left: 202px;
    font-size: 13px;
}

/* summary of author and time of creation */
.author-box {
    height: 32px;
    line-height: 100%;
    float: left;
}
.author-box img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    float: left;
}
.author-box .details {
    float: left;
    font-size: 13px;
}
.author-box .details b {
    color: #444;
    display: block;
}

/* investment list item (used on blog and upcoming page) */
.investment-list-item {
    width: 680px;
    line-height: 110%;
    padding-top: 10px;
    overflow: auto;
}
.investment-list-item-border-hard {
    border-top: solid 1px #cfdef0;
}
.investment-list-item-border-soft {
    border-top: solid 1px #eaf1f8;
}
.investment-list-item img {
    width: 80px;
    height: 80px;
    float: left;
    margin-bottom: 10px;
    border: none;
}
.investment-list-item .time-and-amount {
    width: 80px;
    margin-right: 10px;
    /* used by proposals header and safely ignored by completed investments */
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    float: left;
}
.investment-list-item .time-and-amount em {
    display: block;
    font-style: normal;
    font-weight: bold;
}
.investment-list-item .vote {
    width: 80px;
    margin-right: 10px;
    font-size: 13px;
    color: #666;
    float: left;
}
.investment-list-item .vote span.voted {
    margin-top: 50px;
}
.investment-list-item .details {
    margin-bottom: 10px;
    font-size: 13px;
}
.investment-list-item .single-indent {
    margin-left: 90px;
}
.investment-list-item .double-indent {
    margin-left: 180px;
}
.investment-list-item .details h2 {
    outline: 0px;
    padding: 0px;
    margin: 2px 0px 5px 0px;
    font-size: 16px;
    font-weight: bold;
    color: #ABC5E4;
    text-decoration: underline;
}
.investment-list-item .details p {
    margin: 0px;
    padding: 0px 0px 10px 0px;
}
.investment-list-item .details p a.content {
    text-decoration: none;
    color: #666;
}
.investment-list-item .details .rating {
    float: right;
}
.investment-list-item .details span.age {
    color: #999;
    padding-left: 10px;
}
.investment-list-item-proposal-end {
    width: 680px;
    margin-top: 10px;
    margin-bottom: 25px;
    border-top: solid 1px #ccdcef;
    height: 3px;
    background-color: #dfe9f5;
}

.more {
    border-top: solid 1px #cfdef0;
    padding-top: 10px;
    text-align: center;
}

.modal-msg {
    padding: 20px 0px;
}
.modal-msg h2 {
    margin: 0px 0px 15px 0px;
    font-size: 16px;
}

/* summary of vote results from the previous month's proposed investments' */
.vote-results {
    border-top: solid 1px #eaf1f8;
    margin-top: 10px;
    padding-top: 5px;
}
.vote-results table {
    border-collapse: collapse;
}
.vote-results table td {
    padding: 5px 0 0 0;
}
.vote-results table td.candidate-title {
    padding-right: 30px;
    color: #666;
}
.vote-results table td.vote-count {
    padding-right: 10px;
    white-space: nowrap;
    color: #666;
}
.vote-results tabley td.vote-count span.percent {
    color: #999;
}
.vote-results table td div.vote-bar {
    background-color: #cfdef0;
    height: 5px;
}

/* container to display when investment shorts list is empty */
.no-investment-shorts {
    width: 680px;
    line-height: 110%;
    border-top: solid 1px #cfdef0;
    padding-top: 10px;
    color: #666;
}

/* head content on upcoming page */
.upcoming-head {
    width: 680px;
    text-align: right;
    padding: 10px 0px;
}

/* page footer */
.footer {
    border-top: solid 1px #eaf1f8;
    font-size: 13px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 10px;
    width: 680px;
    color: #999;
    text-align: center;
}
.footer a {
    color: #999;
    margin-right: 20px;
}

/* summary of key metrics on site, show at top of blog page */
.blog-summary {
    font-size: 13px;
    float: right;
    color: #999;
}

/* button style */
.btn {
    /* Firefox and Chrome interpret button padding differently.
     * http://stackoverflow.com/questions/2954659/css-size-of-buttons-in-chrome-is-different-than-firefox */
    padding: 5px 8px;
    border: solid 1px #1B5790;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    color: #105CB6;
    cursor: pointer;
    text-shadow: white 0px 1px 0px;
    background-color: #E3ECF6;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#E3ECF6));
    background: -moz-linear-gradient(top, #fff, #E3ECF6);
}
.btn:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.btn:active {
    position: relative;
    top: 1px;
    box-shadow: inset 0 0 10px rgba(0,0,0,.3);
    -moz-box-shadow: inset 0 0 10px rgba(0,0,0,.3);
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,.3);
}
.btn-bold {
    font-weight: bold;
}

/* simulation page */
.sim {
    margin-top: 30px;
}
.sim h2 {
    font-size: 22px;
    margin: 0px 0px 25px 0px;
    color: #666;
}
.sim ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.sim ul li {
    padding: 2px 0px;
}

/* text confirming to the user that a vote, like or dislike was received */
.voted {
    padding-top: 5px;
    padding-bottom: 5px;
}
.voted span {
    color: #fff;
    background-color: #008800;
    font-size: 15px;
    font-weight: bold;
    padding: 5px 8px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    white-space: nowrap;
}